
package com.exltsoft.fc.action.admin.useradmin;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.struts2.convention.annotation.Namespace;
import org.springframework.transaction.annotation.Transactional;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;

@Transactional
@Namespace("/admin")
public class UsertestAction extends ActionSupport implements ModelDriven<Object>, Preparable {

	private List<Map<String,Object>> list;
	
	@Override
	public void prepare() throws Exception {
	}
	
	@Override
	public String execute() throws Exception {
		list = new ArrayList<Map<String,Object>>();
		HashMap<String, Object> m = new HashMap<String, Object>();
		m.put("userid", "userid");
		m.put("username", "username");
		list.add(m);
		return SUCCESS;
	}
	
	
	@Override
	public Object getModel() {
		return null;
	}

	public List<Map<String, Object>> getList() {
		return list;
	}

	public void setList(List<Map<String, Object>> list) {
		this.list = list;
	}
	
	
	
	

}
